﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


public class BLL_tbl_currency_master
{
    public BLL_tbl_currency_master()
    {

    }

    public List<tbl_currency_master> select(String CURRENCY_ID)
    {
        DAL_tbl_currency_master dal = new DAL_tbl_currency_master();
        return dal.select(CURRENCY_ID);
    }

    public List<tbl_currency_master> selectAll()
    {
        DAL_tbl_currency_master dal = new DAL_tbl_currency_master();
        return dal.selectAll();
    }

    public bool insert(tbl_currency_master tbl)
    {
        DAL_tbl_currency_master dal = new DAL_tbl_currency_master();
        int i = 0;
        i = dal.insert(
            tbl.CURRENCY_NAME
, tbl.CURRENCY_SYMBOL
, tbl.IS_ACTIVE
, tbl.CREATED_BY
, tbl.CEATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_currency_master tbl)
    {
        DAL_tbl_currency_master dal = new DAL_tbl_currency_master();
        int i = 0;
        i = dal.update(
            tbl.CURRENCY_ID
, tbl.CURRENCY_NAME
, tbl.CURRENCY_SYMBOL
, tbl.IS_ACTIVE
, tbl.UPDATED_BY
, tbl.UPDATED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_currency_master tbl)
    {
        DAL_tbl_currency_master dal = new DAL_tbl_currency_master();
        int i = 0;
        i = dal.delete(
                tbl.CURRENCY_ID
        );

        return Convert.ToBoolean(i);
    }


}

